<?php

namespace App\Observers;

use App\Models\CrawlerPictuer;
use App\Jobs\CrawlerPictuerJobs;
// creating, created, updating, updated, saving,
// saved,  deleting, deleted, restoring, restored

class CrawlerPictuerObserver
{
    public function created(CrawlerPictuer $pictuer)
    {
        // 有新图片加入  分发抓取任务
        dispatch(new CrawlerPictuerJobs($pictuer));
    }
}
